#include "oop.h"

int main(int argc, char* argv[]) {
    std::cout.precision(8);
    std::cout << 12.23 << std::endl;
    Fraction f(3,5);
    double d = 4 + f;
    std::cout.precision(4);
    std::cout << "d = " << d << std::endl;
    Fraction d2 = f + 4;
    std::cout << "d2 = " << d2 << std::endl;

    shared_ptr<Foo> sp(new Foo);
    Foo f(*sp);
    sp->method(); // -> 得到的对象会一直使用->指下去.
    
    
    
    return 0;
}